Platform Explorer / Nuxeo Platform 2023.22

Extension point processor

Documentation

Extension allowing one to register a new TemplateProcessor.

A TemplateProcessor is a class associated with a format (mime-type or extension) and that can be used to render a DocumentModel via type type of template.

For instance :

    <templateProcessor
        class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor"
        default="true" label="XDocReport processor" name="XDocReportProcessor">
        <supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType>
        <supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType>
        <supportedExtension>odt</supportedExtension>
        <supportedExtension>docx</supportedExtension>
    </templateProcessor>

Contribution Descriptors

  • Class: org.nuxeo.template.api.descriptor.TemplateProcessorDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-template-rendering-core-2023.22.13.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Freemarker based template processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.fm.FreeMarkerProcessor" default="false" label="Raw Freemarker" name="Freemarker">
          <supportedMimeType>text/x-freemarker</supportedMimeType>
          <supportedExtension>ftl</supportedExtension>
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-core-2023.22.13.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>XSLT template processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.xslt.XSLTProcessor" default="false" label="Raw XSLT Processor" name="XSLTProcessor">
          <supportedMimeType>text/xml</supportedMimeType>
          <supportedExtension>xml</supportedExtension>
          <supportedExtension>xsl</supportedExtension>
          <supportedExtension>xslt</supportedExtension>
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-core-2023.22.13.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Identity processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.IdentityProcessor" default="false" label="Identity" name="Identity">
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-jxls-2023.22.13.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>JXLS template processor  @author Thierry Delprat (td@nuxeo.com)</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.jxls.JXLSTemplateProcessor" default="false" label="JXLS Processor" name="JXLSProcessor">
          <supportedMimeType>application/vnd.ms-excel</supportedMimeType>
          <supportedExtension>xls</supportedExtension>
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-xdocreport-2023.22.13.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>XDocReport Report based template processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor" default="true" label="XDocReport processor" name="XDocReportProcessor">
          <supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType>
          <supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType>
          <supportedMimeType>application/vnd.oasis.opendocument.spreadsheet</supportedMimeType>
          <supportedExtension>odt</supportedExtension>
          <supportedExtension>docx</supportedExtension>
          <supportedExtension>ods</supportedExtension>
        </templateProcessor>
    
      </extension>